/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package competition.JPA;

import competition.DAO.CultureDAO;
import competition.JpaUtil;
import competition.business.Culture;
import java.util.List;
import javax.persistence.Query;

/**
 *
 * @author Administrateur
 */
public class JPACulture extends JPAEvent implements CultureDAO {

    public List<Culture> getCultureByTheme(String Theme) {
        Query query = JpaUtil.getEntityManager().createQuery("SELECT cult FROM AbstractEvent AS cult WHERE cult.theme = '" + Theme + "'");
        return query.getResultList();
    }

}
